package com.xckj.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.xckj.entity.JarDir;
import com.xckj.service.JarDirService;
import com.xckj.utils.ReturnT;

/**
 * @description 指定的jar包
 * @author yanchf
 * @date 2023-12-09
 */
@Service
public class JarDirServiceImpl implements JarDirService {


	@Override
	public Object insert(JarDir jarDir) {

		// valid
		if (jarDir == null) {
			return ReturnT.error("必要参数缺失");
        }

        return ReturnT.success();
	}


	@Override
	public Object delete(int id) {
		return ReturnT.success();
	}


	@Override
	public Object update(JarDir jarDir) {
		return ReturnT.success();
	}


	@Override
	public JarDir load(int id) {
		return null;
	}


	@Override
	public Map<String,Object> pageList(int offset, int pagesize) {

		List<JarDir> pageList = null;
		int totalCount = 0;

		// result
		Map<String, Object> result = new HashMap<String, Object>();
		result.put("pageList", pageList);
		result.put("totalCount", totalCount);

		return result;
	}

}